package annotation;

import org.junit.Test;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @ClassName Demo01
 * @Description TODO
 * 注解demo1
 * @Author liang
 * @Date 2018/10/12 9:59
 * @Version 1.0
 **/
@MyAnnotation01
public class Demo01 {

    /**
     * Override 说明此方法是要重写父类方法，如果父类没有此方法就会报错
     * @return
     */
    @Override
    public String toString(){

        return "";
    }
    @Deprecated
    public static void test(){

    }

    @SuppressWarnings("all")
    public static void test2(){
        List list = new ArrayList();
    }


    @RuntimeAnnotation(name="",home="")
    @Test
    public void fun(){

    }

}
